﻿@{
    ViewBag.Title = "维护用户";
    Layout = null;
}
@using iCodeStudio.Entity
@model iCode_User
<div class="pageContent">
    <form method="post" action="@Url.Action("AddUser")" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" layouth="56">
            <p>
                <label>用户账号：</label>
                @if (string.IsNullOrEmpty(Model.iCode_User_Account))
                {
                    @Html.TextBoxFor(obj => obj.iCode_User_Account, new { siez = "16", @class = "required", alt = "请输入用户账号" })
                }
                else { 
                    @Html.TextBoxFor(obj => obj.iCode_User_Account, new { siez = "16", @class = "required readonly", alt = "请输入用户账号" ,@readonly=true })
                }
                @Html.HiddenFor(obj => obj.iCode_User_ID)
            </p>
            <p>
                <label>用户密码：</label>
                @Html.PasswordFor(obj => obj.iCode_User_Pwd, new { size = "16", @class = "required", alt = "请输入密码" })
            </p>
            <p>
                <label>用户名称：</label>
                @Html.TextBoxFor(obj => obj.iCode_User_Name, new { size = "16", @class = "required", alt = "请输入用户名称" })
            </p>
        </div>
        <div class="formBar">
            <ul>
                <!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>
